home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 144_01 / ls.hlp < prev    next >
Text File  |  1985-08-19  |  2KB  |  55 lines

  1. **********************************************************************
  2. *                             LS                                     *
  3. **********************************************************************
  4. *                  COPYRIGHT 1983 EUGENE H. MALLORY                  *
  5. **********************************************************************
  6. PROGRAM:
  7.     LS - Expand and generate list of file names.
  8.     
  9. USAGE:
  10.     LS afn ... [>fid]
  11.     
  12. FUNCTION:
  13.     Expands file names that appear on the command line. It 
  14.     automatically expands the parameter list to contain all files 
  15.     that fit the afn's.
  16.  
  17.     An afn preceded by a "!" causes all names matching the given afn 
  18.     to be EXCLUDED from the resulting expansion list. Thus, to yield 
  19.     a command line containing all files except "COM" files, you'd say:
  20.  
  21.     A>LS !*.com <cr>
  22.  
  23.     Another example: to get all files on B: except .C files, say:
  24.  
  25.     A>LS b:*.* !b:*.c <cr>
  26.  
  27.     When giving a "!" afn, "*" chars in the string matches to the end 
  28.     of either the filename or extension, just like CP/M, but "?" 
  29.     chars match ONE and ONLY ONE character in either the filename or 
  30.     extension.
  31.  
  32. EXAMPLE:
  33.     LS *.HLP !HELP.HLP |PAGE |2UP -N4  >LST:
  34.     
  35. COMMENTS:
  36.     No input is used except from the command line.
  37.     
  38.  
  39.  
  40.         Command Line                       
  41.  
  42. ___________________________________  
  43.                                   |  
  44.                                   |  
  45.                                   |  AMBIGUOUS FILE NAME LIST
  46.                                   |  
  47.                                   |                  
  48.                     ______________V______________    
  49.                     |                           |   Standard Output
  50.                     |                           |   FILE NAME LIST
  51.                     |            LS             |----------------------->
  52.                     |                           |
  53.                     |                           |
  54.                     |___________________________|
  55.